﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;

namespace FileDistributor.Service
{
    public class FileDistributorService : ServiceBase
    {
        private readonly BootStrapper _bootStrapper;

        public FileDistributorService()
        {
            _bootStrapper = new BootStrapper();
        }

        protected override void OnStart(string[] args)
        {
            base.OnStart(args);

            _bootStrapper.Start();

        }

        protected override void OnStop()
        {
            base.OnStop();

            _bootStrapper.Stop();

        }

    }
}
